

%%
d = learn(16);


results = [];
s = 17;
f= 27;
for i =0:1
    for j = s:f
        c = classify(d,cv2007image(i,j));
        if strcmp(c, 'car') & i==0
            results(i+1,j-s+1) = 1;
        elseif strcmp(c, 'car') & i==1
            results(i+1,j-s+1) = 0;
        elseif strcmp(c, 'cat') & i==0
            results(i+1,j-s+1) = 0;
        elseif strcmp(c, 'cat') & i==1
            results(i+1,j-s+1) = 1;
        end
    end
end

results

sum(sum(results)) / prod(size(results))

